package com.xzit.homework;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestGrades {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");
        GradeManager gradeManager = context.getBean("gradeManager",GradeManager.class);
        gradeManager.printTotalGrade();
        gradeManager.bootFailedGrades();
        System.out.println("提升后的平均分为：");
        gradeManager.printAverageGrade();
    }
}
